package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_discover_spec;

import cn.com.api.mapper.ApiU_discover_specMapper;

import cn.com.api.service.ApiU_discover_specService;

/**
 * 
 **/
@Service
public class U_discover_specServiceImplBase {
	@Autowired
	private ApiU_discover_specMapper apiU_discover_specMapper;
    
    // 根据id获取
	public ApiU_discover_spec findU_discover_specById(Integer id){
		ApiU_discover_spec u_discover_spec = apiU_discover_specMapper.findU_discover_specById( id );
		return u_discover_spec;
	}
    
    //查看数据集
	public List<ApiU_discover_spec> findU_discover_specs(){
        List<ApiU_discover_spec> u_discover_specs = apiU_discover_specMapper.findU_discover_specs();
		return u_discover_specs;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_discover_specsByMap(HashMap condition){
        List<Map<String, Object>> u_discover_specs = apiU_discover_specMapper.findU_discover_specsByMap(condition);
		return u_discover_specs;
    }
    
	// 添加
	public int insertU_discover_spec(ApiU_discover_spec u_discover_spec){
		int ret_I= apiU_discover_specMapper.insertU_discover_spec(u_discover_spec);
		return ret_I;
	}

	// 修改
	public int updateU_discover_spec(ApiU_discover_spec u_discover_spec){
		int ret_I= apiU_discover_specMapper.updateU_discover_spec(u_discover_spec);
		return ret_I;
	}
	
    // 删除
	public int deleteU_discover_spec(Integer id){
		int ret_I= apiU_discover_specMapper.deleteU_discover_spec( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


